package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Device extends BaseEntity {
    /** 设备信息ID */
    private Integer id;
    /** 项目资金信息ID */
    private Integer projectFundId;
    @Excel(name = "项目名称")
    private String projectName;
    @Excel(name = "项目编号")
    private String projectNo;
    @Excel(name = "设备名称")
    private String name;
    @Excel(name = "设备型号")
    private String deviceNo;
    @Excel(name = "数量")
    private Integer num;
    @Excel(name = "单价(万元)")
    private BigDecimal amount;
    @Excel(name = "总价(万元)")
    private BigDecimal totalAmount;
    @Excel(name = "产品属性")
    private String type;
    @Excel(name = "标准产品")
    private String product;
    @Excel(name = "联系人名称")
    private String contactName;
    @Excel(name = "联系人电话")
    private String contactPhone;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDate;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date guaranteeDate;

    private Integer delFlag;


    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 当前用户部门ID */
    private Integer deptId;
    /** 用户ID */
    private Integer userId;
    /** 用于接收该用户及夏季用户姓名（用户名）  */
    private String childrenOrMine;

    /**院系ID*/
    private Integer facultyId;

    /** 代理商ID */
    private Integer agentId;
    /** 客户ID */
    private Integer clientId;

    /** 客户名称 */
    private String clientName;
    /** 院系名称 */
    private String facultyName;
    /** 代理商名称 */
    private String agentName;


    private List<Integer> projectIds;


    private Integer pageNum;
    private Integer pageSize;
}
